package com.example.mvvmdemo.api

import com.example.mvvmdemo.bean.OnSellData
import com.example.mvvmdemo.bean.ResultData
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * @author Liyg
 * @description:网络访问链接
 * @date :2020/11/4
 */
interface ApiService{
    companion object{
        const val BASE_URL = "https://api.sunofbeach.net/shop/"
    }

    @GET("onSell/{page}")
    suspend fun getOnSellList(@Path("page")page:Int):ResultData<OnSellData>
}